package com.sn.pw.dao.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.gitee.sunchenbin.mybatis.actable.annotation.*;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlCharsetConstant;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlEngineConstant;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import com.sn.pw.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Data
@TableName("bidding")
@TableComment("竞价表")
@TableCharset(MySqlCharsetConstant.UTF8MB4)
@TableEngine(MySqlEngineConstant.InnoDB)
public class Bidding extends BaseEntity {
    /**
     * 出通单号
     */
    @TableField("shipping_order_number")
    @ColumnType(MySqlTypeConstant.VARCHAR)
    @ColumnComment("出通单号")
    private String shippingOrderNumber;

    /**
     * 物流公司ID
     */
    @TableField("company_id")
    @ColumnType(MySqlTypeConstant.BIGINT)
    @ColumnComment("物流公司ID")
    private Long companyId;

    /**
     * 出价人ID
     */
    @TableField("bidder_id")
    @ColumnType(MySqlTypeConstant.BIGINT)
    @ColumnComment("出价人ID")
    private Long bidderId;

    /**
     * 出价时间
     */
    @TableField("bid_time")
    @ColumnType(MySqlTypeConstant.DATETIME)
    @ColumnComment("出价时间")
    private Date bidTime;

    /**
     * 第一轮出价
     */
    @TableField("first_bid")
    @ColumnType(value = MySqlTypeConstant.DECIMAL,decimalLength = 8,length = 20)
    @ColumnComment("第一轮出价")
    private BigDecimal firstBid;

    /**
     * 第二轮出价
     */
    @TableField("second_bid")
    @ColumnType(value = MySqlTypeConstant.DECIMAL,decimalLength = 8,length = 20)
    @ColumnComment("第二轮出价")
    private BigDecimal secondBid;

    /**
     * 出价状态
     */
    @TableField("status")
    @ColumnType(MySqlTypeConstant.TINYINT)
    @ColumnComment("出价状态")
    private String status;

    /**
     * 订单竞价状态
     */
    @TableField("order_status")
    @ColumnType(MySqlTypeConstant.TINYINT)
    @ColumnComment("订单状态")
    private String OrderStatus;
}
